package vip.zhenzicheng.design_patterns.adapter.object_adapter;

/**
 * 计算机类
 *
 * @author zhenzicheng
 * @date 2022-05-26 09:30
 */
public class Computer {

  //从SD卡中读取数据
  public String readSD(SDCard sdCard) {
    if (sdCard == null) {
      throw new NullPointerException("sd card is not null");
    }
    return sdCard.readSD();
  }
}
